<div class="modal" ui-if="chgpwdModal" ui-state='chgpwdModal'>
  <div class="modal-backdrop in"></div>
  <div class="modal-dialog my-modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">修改密码</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon"><i class="fa fa-unlock-alt"></i></div>
            <input type="text" class="form-control" name="oldpassword" required ng-model="oldpassword" placeholder="原密码">
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon"><i class="fa fa-lock"></i></div>
            <input type="password" class="form-control" name="newpassword" required ng-model="newpassword" placeholder="新密码">
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon"><i class="fa fa-lock"></i></div>
            <input type="password" class="form-control" name="confirmpassword" required ng-model="confirmpassword" placeholder="确认新密码" ui-validate="'$value == newpassword'" ui-validate-watch=" 'newpassword' ">
          </div>
        </div>
        <div class="form-group">
          <div class="row">
            <button ui-turn-off="chgpwdModal" class="btn btn-default col-xs-offset-1 col-xs-5" ng-click="password = ''">取消</button>
            <button ui-turn-off="chgpwdModal" class="btn btn-primary col-xs-5" ng-disabled="newpassword != confirmpassword || newpassword == oldpassword">确定</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>